WPF and Silverlight Edition Basic Library > Masked Text Box > MaskedTextBox Quick Start > Step 2 of 4: Customizing the Application |
In the previous step you created a new WPF or Silverlight project and added four C1MaskedTextBox and five Label controls to the application. In this step you'll continue by setting properties to customize those controls.
Complete the following steps:
XAML Copy Code <c1:C1MaskedTextBox Height="23" Margin="21,46,167,0" Name="C1MaskedTextBox1" VerticalAlignment="Top" Watermark="Name" />This will add a watermark to the control.
XAML Copy Code <c1:C1MaskedTextBox Margin="14,98,12,0" Name="C1MaskedTextBox2" Height="23" VerticalAlignment="Top" Watermark="Employee ID" Mask="000-00-0000" />This will add a watermark and mask to the control.
XAML Copy Code <c1:C1MaskedTextBox Height="23" Margin="14,0,12,87" Name="C1MaskedTextBox3" VerticalAlignment="Bottom" Watermark="Hire Date" Mask="00/00/0000"/>This will add a watermark and mask to the control.
XAML Copy Code <c1:C1MaskedTextBox Height="23" Margin="14,0,12,33" Name="C1MaskedTextBox4" VerticalAlignment="Bottom" Watermark="Phone Number" Mask="(999) 000-0000"/>This will add a watermark and mask to the control.
You've successfully set up your application's user interface. In the next step you'll add code to your application.